package com.time.sky.controller;

import com.time.sky.entity.Residence;
import com.time.sky.mapper.ResidenceMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.CrossOrigin;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@CrossOrigin
public class ResidenceController {
    @Autowired
    private ResidenceMapper residenceMapper;
    @RequestMapping("queryResidence")
    public List<Residence> queryResidence(){
       return residenceMapper.queryResidence();
    }
}
